<?php

class JS_RemainderNode extends JS_Node {
	
	public function __construct($val) {
		parent::__construct($val);
	}
	
	public function interpret() {
		return $this->children[0]->interpret() % $this->children[1]->interpret();
	}
	
	public function __toString() {
		return $this->children[0] . ' % ' . $this->children[1];
	}

}
